状态
focus

input
blur


//配置
//username
//phone
//password
//verifyCode
//isAgree
//不能为空 
var required;
var required-message = {
	username: "请输入用户名",
	phone: "请输入手机号",
	password: "请输入密码",
	verifyCode: "请您输入验证码",
	isAgree: "请勾选“阅读并接受xx用户协议”",
}
if( !this.val() ) {
	$(".form-item").find(".form-error").css({"display": "inline"}).text(required-message);
	$(".form-text-input").addClass("form-text-input-error");
}

//格式不正确
var regexp = {
	username: ,
	phone: ,
	password: ,
	verifyCode: ,
	isAgree: 
}
$(".form-item").find(".form-error").css({"display": "inline"}).text(required-message);
$(".form-text-input").addClass("form-text-input-error");
username
"(?!(\d)+$)^[\u4e00-\u9fa5\w]+$"
用户名不能超过7个汉字或14个字符"maxlength = 14"
用户名仅支持中英文、数字和下划线,且不能为纯数字
此用户名太受欢迎,请更换一个

phone
"^(13|14|15|18)[0-9]{9}$"
手机号码格式不正确


input
password
1/minlength=6;
maxlength=14;
2/  ".*"
3/  /\s/ !r.test(str)
$(".form-tip-password").css({"display": "block"}).find(".pwd-checklist-item").addClass("pwd-checklist-item-success");
$(".form-tip-password").css({"display": "block"}).find(".pwd-checklist-item").addClass("pwd-checklist-item-error");

strength

nopwd
detail: "请输入密码"
$(".form-error").css({"display": "inline"}).find(".pwd-strength").addClass("nopwd")
	.find(".pwd-strength-detail").text(detail)

weak
detail: "请重新设置，试试数字、字母、符号组合",
title: "弱"
$(".form-error").css({"display": "inline"}).find(".pwd-strength").addClass("weak")
	.find(".pwd-strength-detail").text(detail)
	.parent().find(".pwd-strength-title").text(title);

middle
detail: "您的密码还可以更复杂些",
title: "中"
$(".form-error").css({"display": "inline"}).find(".pwd-strength").addClass("middle")
	.find(".pwd-strength-detail").text(detail)
	.parent().find(".pwd-strength-title").text(title);

strong
detail: "您的密码很安全,请牢记！",
title: "强"
$(".form-error").css({"display": "inline"}).find(".pwd-strength").addClass("strong")
	.find(".pwd-strength-detail").text(detail)
	.parent().find(".pwd-strength-title").text(title);


//成功
$(".form-item").find(".form-succ").css({"display": "inline"});

//提示信息tip
$(".form-tip").css({"display": "inline"});
$(".form-tip-password").css({"display": "block"})

//清空按钮
$(".form-item").find(".form-clearbtn").css({"display": "block", "visibility": "visible"});

focus
$(".form-text-input").addClass( "form-text-input-focus" );

